package com.ofek.eventos.db.datatypes.helptypes;

import java.io.Serializable;

import com.ofek.applicationbase.forms.FormField;
import com.ofek.base.db.DataField;
import com.ofek.base.db.DataTypeClass;
@DataTypeClass
public class FieldInfo implements Serializable {
	@DataField(isKey = true,isAutoIncrement=true,isNullable=false)
	@FormField
	public long fid;
	@DataField
	@FormField
	public String title;
	@DataField
	@FormField
	public int fieldType;
	@DataField
	@FormField
	public boolean isRequired;
	public FieldInfo( final String title, final int fieldType,
			final boolean isRequired) {
		this.title = title;
		this.fieldType = fieldType;
		this.isRequired = isRequired;
	}
	public FieldInfo() {
		// TODO Auto-generated constructor stub
	}
	public FieldInfo(final long fid, final String title, final int fieldType, final boolean isRequired) {
		this(title, fieldType, isRequired);
		this.fid = fid;
	}
	/**
	 * @param longValue
	 */
	public FieldInfo(final long fid) {
		this.fid = fid;
	}

}
